package cn.wsalix.status;

public enum ActEnum {
	edit("1", "编辑"),release("2", "发布"),close("3", "关闭");
	private String code;
	private String title;

	ActEnum(String code, String title) {
		this.code = code;
		this.title = title;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public static ActEnum findByCode(String code) {
		for (ActEnum userKind : ActEnum.values()) {
			if (userKind.getCode().equals(code)) {
				return userKind;
			}
		}
		return null;
	}

}
